$(function(){
	getUrl("retrievePassword/resetMail");
	ajaxGetUserForResetPwd();
	$("#login").click(function(){
		window.location.href="/Lvscore_User_M";
	});
});
/**
 * 获取用户绑定邮箱
 */
function ajaxGetUserForResetPwd() {
	var url = "/Lvscore_User_M/ajaxGetUserForResetPwd";
	$.post(
		url,
		function (data) {
			var text = data.name + "（" + data.email.replace(/(.{2}).+(.{2}@.+)/g, '$1****$2') + "）";
			$("#user_account").text(text);
		},
		"json"
	);
}


